package com.hilon.aixinmis1.base.flow;

import com.hilon.foundation.base.BaseService;
import com.hilon.foundation.util.ResultBean;

import java.util.List;

public interface FlowControlService extends BaseService<FlowControl, FlowControl> {

    ResultBean<List<FlowControl>> getFlowControlsByEntityNameAndId(String entityName,
                                                                   Long idReceipt) throws Exception;

    ResultBean<List<FlowControlModel>> getFlowControlModels(String entityName,
                                                            String categoryType,
                                                            String categoryTypeDetail) throws Exception;
    ResultBean<String> saveAll(List<FlowControl> flowControls) throws Exception;
    ResultBean<String> saveAsModel(List<FlowControlModel> flowControlModels) throws Exception;


}
